package com.jv.spring.importannotation;

import com.jv.spring.importannotation.scan.User;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class ImportMain {
	public static void main(String[] args) {
		AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(ImportSpringAppConfig.class);
		User user = (User)ac.getBean("user");
		System.out.println(user.getName());
	}
}
